package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LoveMusicMapper {
    Music findLoveMusicByMusicIdAndUserId(int userId, int musicId);

    boolean insertLoveMusic(int userId,int musicId);

    List<Music> findLoveMusicByUserId(int userId);

    List<Music> findLoveMusicBykeyAndUID(String musicName, int userId);

    int deleteLoveMusic(int userId,int musicId);

    int deleteLoveMusicByMusicId(int musicId);
}
